import React, { Component } from 'react'
import { Link } from 'react-router-dom'

class Home extends Component{

    render() {
        return (
            <div>
                <ul>
                    <li>
                        <Link to="/">main</Link>
                    </li>
                    <li>
                        <Link to="/about">about</Link>
                    </li>
                    <li>
                        <Link to="/topics">topic</Link>
                    </li>
                </ul>
                <hr/>
                {this.props.children}
            </div>
        )
    }
}

export default Home